#include <stdio.h>
#include <string.h>
#include <memory.h>

int main( )
{
    char data1[ 500 ], data2[ 500 ];
    while ( scanf("%s%s", data1, data2) != EOF )
    {
        int a[ 500 ], b[ 500 ], i, j, t1 = 0, l1 = 0, t2 = 0, l2 = 0, s = strlen( data1 );
        bool po = false;
        memset( a, 0, sizeof( a ) );
        memset( b, 0, sizeof( b ) );
        for ( i = 0; i < strlen( data1 ); i++ )
            if ( data1[ i ] == '.' )
            {
                s = i;
                break;
            }
        for ( i = s - 1; i >= 0; i-- )
            a[ t1++ ] = data1[ i ] - '0';
        for ( i = s + 1; i < strlen( data1 ); i++ )
            b[ l1++ ] = data1[ i ] - '0';
        s = strlen( data2 );
        for ( i = 0; i < strlen( data2 ); i++ )
            if ( data2[ i ] == '.' )
            {
                s = i;
                break;
            }
        for ( i = s - 1; i >= 0; i-- )
            a[ t2++ ] += data2[ i ] - '0';
        for ( i = s + 1; i < strlen( data2 ); i++ )
            b[ l2++ ] += data2[ i ] - '0';
        if ( l2 > l1 ) l1 = l2;
        if ( t2 > t1 ) t1 = t2;
        for ( i = l1 - 1; i >= 0; i-- )
            if ( b[ i ] > 9 )
            {
                if ( i == 0 )
                {
                    a[ 0 ] += b[ i ] / 10;
                    b[ i ] %= 10;
                }
                else
                {
                    b[ i - 1 ] += b[ i ] / 10;
                    b[ i ] %= 10;    
                }
            }
        for ( i = 0; i < t1; i++ )
            if ( a[ i ] > 9 )
            {
                a[ i + 1 ] += a[ i ] / 10;
                a[ i ] %= 10;
                if ( i == t1 - 1 )
                    t1++;
            }
        for ( i = t1 - 1; i >= 0; i-- )
            printf("%d", a[ i ]);
        for ( i = 0; i < l1; i++ )
            if ( b[ i ] != 0 )
            {
                po = true;
                break;
            }
        if ( po )
        {
            printf(".");
            for ( i = 0; i < l1; i++ )
            {
                if ( b[ i ] == 0 )
                {
                    for ( j = i + 1; j < l1; j++ )
                        if ( b[ j ] != 0 ) break;
                    if ( j == l1 )
                        break;
                }
                printf("%d", b[ i ]);
            }
        }
        printf("\n");
    }
    return 0;
}
